package com.t2two.example.projects;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @auther bruce lan/00001
 * @create 2023-07-10 17:39:48
 * @describe 流转记录实体类
 */
@Data
public class DbCirculationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("process_instance_id")
    private String processInstanceId;

    @TableField("result")
    private String result;

    @TableField("comments")
    private String comments;

    @TableField("start_time")
    private Date startTime;

    @TableField("end_time")
    private Date endTime;

    @TableField("task_name")
    private String taskName;

    @TableField("user_name")
    private String userName;

    @TableField("is_new")
    private Boolean isNew;

    @TableField("type")
    private String type;

    @TableField(exist = false)
    private String assignee;

    @TableField("process_definition_id")
    private String processDefinitionId;

    @TableField("priority")
    private Integer priority;

    @TableField("form_id")
    private Integer formId;

    @TableField("business_key")
    private String businessKey;

    @TableField("user_id")
    private Integer userId;

    @TableField("USER_TYPE_CODE")
    private String userTypeCode;

    @TableField(exist = false)
    public transient List<String> resetFields;


    @TableField(exist = false)
    private String activityId;

}
